#include "OgrePrerequisites.h"
#include <OgreController.h>

using namespace Ogre;

//! Controller to update an animation automatically
class AnimAddTimeControllerValue : public ControllerValue<Real>
{
	protected:
		AnimationState* mTargetAnimationState;
	public:
		/** Constructor, pass in the target animation state. */
		AnimAddTimeControllerValue(AnimationState* targetAnimationState)
			: mTargetAnimationState(targetAnimationState) {}
		/// Destructor (parent already virtual)
		~AnimAddTimeControllerValue() {}
		/** ControllerValue implementation. */
		Real getValue(void) const;

		/** ControllerValue implementation. */
		void setValue(Real value);
};